{% for i in content %}
    <tr class="gradeA odd" role="row">
        <!--<td class="sorting_1">{{ i.id }}</td>-->
        <td class="sorting_1">{{ forloop.counter }}</td>
        <!--<td><a href="/fms/detail/{{ i.id }}">{{ i.vm_ip }}</a></td>-->
        <td class="center">{{ i.vm_ip }}</td>
        <td class="center">{{ i.vm_hostname }}</td>
        <td class="center">
<div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;width:30px;" title="{{ i.get_vm_system_display}}">{{ i.get_vm_system_display }}</div>
</td>
        <!--<td class="center">{{ i.get_vm_system_display }}</td>-->
        <td class="center">{{ i.get_vm_bit_display }}</td>
        <td class="center">{{ i.get_vm_cpu_display }}</td>
        <td class="center">{{ i.get_vm_mem_display }}</td>
        <td class="center">{{ i.vm_disk }}</td>
        <td class="center">
<div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;width:30px;" title="{{ i.vm_use }}">{{ i.vm_use }}</div>
</td>
        <!--<td class="center">{{ i.vm_use }}</td>-->
        <td class="center">{{ i.vm_stime }}</td>
        <td class="center">{{ i.vm_endtime }}</td>
        <!--<td class="center">{{ i.vm_beizhu }}</td>-->
             <td class="center">
<div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;width:30px;" title="{{ i.vm_beizhu }}">{{ i.vm_beizhu }}</div>
</td>

        <td class="center">{{ i.vm_ower }}</td>
        <td class="center">
            {% if i.vm_status != 1 %}
            <span class="btn btn-xs btn-danger">{{ i.get_vm_status_display}}</span>
            {% else %}
            <span class="btn btn-xs btn-success">{{ i.get_vm_status_display}}</span>
            {% endif %}


        </td>
        <td class="center" style="display: none;">{{ i.created_by_id}}</td>
        <td class="center">
            {% if user == 1 and i.vm_ip != null and i.vm_status != 2 %}
            <a href=/vmware/manage?id={{ i.id }} class="btn btn-primary btn-xs btn-edit">处理</a>
            <!--<a href=/vmware/edit?id={{ i.id }} class="btn btn-xs btn-success btn-edit">编辑</a>-->
            <a class="btn btn-xs btn-danger" id="vmware_recovery_{{i.id}}">回收</a>
            <a class="btn btn-xs btn-primary btn-email" data-toggle="modal" data-target="#editor"
               data-row={{ i.id }}|{{ i.author.fullname }}>通知</a>
            {% elif user == 1 and i.vm_ip == null %}
             <a href=/vmware/manage?id={{ i.id }} class="btn btn-primary btn-xs btn-edit">处理</a>
             <a class="btn btn-xs btn-danger" id="vmware_delete_{{i.id}}">删除</a>
            {% elif i.vm_status == 2  %}
             <a class="btn btn-xs btn-danger" id="vmware_delete_{{i.id}}">删除</a>
             <a class="btn btn-xs btn-primary btn-email" data-toggle="modal" data-target="#editor"
               data-row={{ i.id }}|{{ i.author.fullname }}>通知</a>
            {% else %}
            <a href=/vmware/edit?id={{ i.id }} class="btn btn-primary btn-xs btn-edit">编辑</a>
            <a class="btn btn-xs btn-danger" id="vmware_delete_{{i.id}}">删除</a>
             <a class="btn btn-xs btn-primary btn-email" data-toggle="modal" data-target="#editor"
               data-row={{ i.id }}|{{ i.author.fullname }}>通知</a>
            {% endif %}
        </td>
    </tr>
{% endfor %}
